from pptx import Presentation
from pptx.enum.shapes import MSO_SHAPE
from pptx.util import Inches

ppt = Presentation()
layout = ppt.slide_layouts[6]
slide = ppt.slides.add_slide(layout)

# 定义图片添加的位置
left = Inches(1)
top = Inches(2)
# 定义插入图片的大小
width = Inches(1.8)
height = Inches(1)

shape = slide.shapes.add_shape(MSO_SHAPE.PENTAGON, left, top, width, height)
shape.text = '第1步'

for i in range(2, 6):
    left = left + width - Inches(0.3)
    shape = slide.shapes.add_shape(MSO_SHAPE.CHEVRON, left, top, width, height)
    shape.text = f'第{i}步'

ppt.save('add_shape.pptx')